import request from '@/utils/request'
// 获取
export const fetchPermissionList = () => request.get('/sys/permission')
// 添加
export const updatePermission = (data) => request.post('/sys/permission', data)
// 删除
export const delPermission = (id) => request.delete(`/sys/permission/${id}`)
// 编辑-获取
export const getDetail = (id) => request.get(`/sys/permission/${id}`)
// 编辑-修改
export const reviesDetail = (data) => request.put(`/sys/permission/${data.id}`, data)
